<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

	<ui:composition 
	  xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">

      <link rel="stylesheet" type="text/css" href="./estilos.css"/>  	
  	
<h:form id="formDesempenho" >  

        	<p:dataTable id="tablePerimetria" var="perimetria" value="#{avaliacaoFisicaBean.dmPerimetria}"  
    			 rowKey="#{perimetria.idPerimetria}"  selectionMode="single"
                 style="padding-top:20px; width:100%" > 
                 <f:facet name="header">
                 	<h:outputLabel value="Perimetria" />
                 </f:facet>  
			<p:column style="width:7%; text-align:center">  
          	  	<f:facet name="header">  
             	   <h:outputText value="Data" />  
          		</f:facet>  
            	<h:outputText value="#{perimetria.avaliacaoFisica.dtAvaliacao}" >
            		<f:convertDateTime dateStyle="medium"/>
            	</h:outputText>  
        	</p:column> 
        	<p:column style="text-align:center">  
           	 	<f:facet name="header">  
                	<h:outputText value="Tórax" />  
            	</f:facet>  
            	<h:outputText value="#{perimetria.pTorax}" >
            	</h:outputText>    
        	</p:column>   		
        	<p:column style="text-align:center">  
           	 	<f:facet name="header">  
                	<h:outputText value="Braço Direito" />  
            	</f:facet>  
            	<h:outputText value="#{perimetria.pBracoDireito}" >
            		<f:convertNumber maxFractionDigits="2" minFractionDigits="2" />
            	</h:outputText>    
        	</p:column>  
        	<p:column style="text-align:center">  
           	 	<f:facet name="header">  
                	<h:outputText value="Braço Esquerdo" />  
            	</f:facet>  
            	<h:outputText value="#{perimetria.pBracoEsquerda}" >
            		<f:convertNumber maxFractionDigits="2" minFractionDigits="2" />
            	</h:outputText>    
        	</p:column>  
        	
        	<p:column style="text-align:center">  
           	 	<f:facet name="header">  
                	<h:outputText value="Antebraço Direito" />  
            	</f:facet>  
            	<h:outputText value="#{perimetria.pAntebracoDireito}" >
            		<f:convertNumber maxFractionDigits="2" minFractionDigits="2" />
            	</h:outputText>    
        	</p:column>  
        	<p:column style="text-align:center">  
           	 	<f:facet name="header">  
                	<h:outputText value="Antebraço Esquerdo" />  
            	</f:facet>  
            	<h:outputText value="#{perimetria.pAntebracoEsquerdo}" >
            		<f:convertNumber maxFractionDigits="2" minFractionDigits="2" />
            	</h:outputText>    
        	</p:column>  
        	<p:column style="text-align:center">  
           	 	<f:facet name="header">  
                	<h:outputText value="Cintura" />  
            	</f:facet>  
            	<h:outputText value="#{perimetria.pCintura}" >
            		<f:convertNumber maxFractionDigits="2" minFractionDigits="2" />
            	</h:outputText>    
        	</p:column>  
        	<p:column style="text-align:center">  
           	 	<f:facet name="header">  
                	<h:outputText value="Abdome" />  
            	</f:facet>  
            	<h:outputText value="#{perimetria.pAbdome}" >
            		<f:convertNumber maxFractionDigits="2" minFractionDigits="2" />
            	</h:outputText>    
        	</p:column>  
        	<p:column style="text-align:center">  
           	 	<f:facet name="header">  
                	<h:outputText value="Quadril" />  
            	</f:facet>  
            	<h:outputText value="#{perimetria.pQuadril}" >
            		<f:convertNumber maxFractionDigits="2" minFractionDigits="2" />
            	</h:outputText>    
        	</p:column>  
        	<p:column style="text-align:center">  
           	 	<f:facet name="header">  
                	<h:outputText value="Coxa Proximal Direita" />  
            	</f:facet>  
            	<h:outputText value="#{perimetria.pCoxaProximalDireita}" >
            		<f:convertNumber maxFractionDigits="2" minFractionDigits="2" />
            	</h:outputText>    
        	</p:column>
        	<p:column style="text-align:center">  
           	 	<f:facet name="header">  
                	<h:outputText value="Coxa Proximal Esquerda" />  
            	</f:facet>  
            	<h:outputText value="#{perimetria.pCoxaProximalEsquerda}" >
            		<f:convertNumber maxFractionDigits="2" minFractionDigits="2" />
            	</h:outputText>    
        	</p:column>    
        	<p:column style="text-align:center">  
           	 	<f:facet name="header">  
                	<h:outputText value="Coxa Medial Direita" />  
            	</f:facet>  
            	<h:outputText value="#{perimetria.pCoxaMedialDireita}" >	
            		<f:convertNumber maxFractionDigits="2" minFractionDigits="2" />
            	</h:outputText>    
        	</p:column>  
        	<p:column style="text-align:center">  
           	 	<f:facet name="header">  
                	<h:outputText value="Coxa Medial Esquerda" />
            	</f:facet>  
            	<h:outputText value="#{perimetria.pCoxaMedialEsquerda}" >
            		<f:convertNumber maxFractionDigits="2" minFractionDigits="2" />
            	</h:outputText>    
        	</p:column>  
        	<p:column style="text-align:center">  
           	 	<f:facet name="header">  
                	<h:outputText value="Panturrilha Direita" />  
            	</f:facet>  
            	<h:outputText value="#{perimetria.pPanturrilhaDireita}" >
            		<f:convertNumber maxFractionDigits="2" minFractionDigits="2" />
            	</h:outputText>    
        	</p:column>  
        	<p:column style="text-align:center">  
           	 	<f:facet name="header">  
                	<h:outputText value="Panturrilha Esquerda" />  
            	</f:facet>  
            	<h:outputText value="#{perimetria.pPanturrilhaEsquerda}" >
            		<f:convertNumber maxFractionDigits="2" minFractionDigits="2" />
            	</h:outputText>    
        	</p:column>  
    	</p:dataTable> 
    <h:panelGrid columns="2" width="35%">
    	<h:panelGrid columns="1" width="20%">
    	<p:dataTable id="tableImc" var="AvaliacaoFisica"  value="#{avaliacaoFisicaBean.dmAvaliacaoFisica}"  
    			 rowKey="#{AvaliacaoFisica.idAvaliacaoFisica}"  selectionMode="single"
                 style="padding-top:20px; width:100%; text-align:left; float:left" > 
                 <f:facet name="header">I.M.C</f:facet>  
			<p:column style="width:10%; text-align:center">  
          	  	<f:facet name="header">  
             	   <h:outputText value="Data" />  
          		</f:facet>  
            	<h:outputText value="#{AvaliacaoFisica.dtAvaliacao}" >
            		<f:convertDateTime dateStyle="medium"/>
            	</h:outputText>  
        	</p:column>  		
        	<p:column style="text-align:center">  
           	 	<f:facet name="header">  
                	<h:outputText value="IMC" />  
            	</f:facet>  
            	<h:outputText value="#{AvaliacaoFisica.imc}" >
            		<f:convertNumber maxFractionDigits="2" minFractionDigits="2" />
            	</h:outputText>  
        	</p:column>  		
    	</p:dataTable>  
	</h:panelGrid>
	<h:panelGrid columns="1" width="100%">    	
    	<p:dataTable id="tablePeso" var="AvaliacaoFisica" value="#{avaliacaoFisicaBean.dmAvaliacaoFisica}"  
    			 rowKey="#{AvaliacaoFisica.idAvaliacaoFisica}"  selectionMode="single"
                 style="padding-top:20px; width:100%; text-align:left; float:left" >   
                 <f:facet name="header">
                 	<h:outputLabel value="Peso" />
                 </f:facet>  
			<p:column style="width:10%; text-align:center">  
          	  	<f:facet name="header">  
             	   <h:outputText value="Data" />  
          		</f:facet>  
            	<h:outputText value="#{AvaliacaoFisica.dtAvaliacao}" >  
            		<f:convertDateTime dateStyle="medium"/>
            	</h:outputText>
        	</p:column>  		
        	<p:column style="text-align:center; width:20%;">  
           	 	<f:facet name="header">  
                	<h:outputText value="Peso Muscular" />  
            	</f:facet>  
            	<h:outputText value="#{AvaliacaoFisica.pesoMuscular}" >
            		<f:convertNumber maxFractionDigits="2" minFractionDigits="2" />
            	</h:outputText>    
        	</p:column>  
        	<p:column style="text-align:center; width:20%;">  
           	 	<f:facet name="header">  
                	<h:outputText value="Peso Gordura" />  
            	</f:facet>  
            	<h:outputText value="#{AvaliacaoFisica.pesoGordura}" >
            		<f:convertNumber maxFractionDigits="2" minFractionDigits="2" />
            	</h:outputText>    
        	</p:column> 
        	<p:column style="text-align:center; width:20%;">  
           	 	<f:facet name="header">  
                	<h:outputText value="Peso Ósseo" />  
            	</f:facet>  
            	<h:outputText value="#{AvaliacaoFisica.pesoOsseo}" >
            		<f:convertNumber maxFractionDigits="2" minFractionDigits="2" />
            	</h:outputText>    
        	</p:column> 
			<p:column style="text-align:center; width:30%;">  
           	 	<f:facet name="header">  
                	<h:outputText value="Peso Residual" />  
            	</f:facet>  
            	<h:outputText value="#{AvaliacaoFisica.pesoResidual}" > 
            		<f:convertNumber maxFractionDigits="2" minFractionDigits="2" />
            	</h:outputText>   
        	</p:column> 	        	
    	</p:dataTable>     
   	 	 </h:panelGrid>
    </h:panelGrid>
</h:form> 
</ui:composition>
